﻿#include "QmlSignal.h"

QMLSignal::QMLSignal()
{

}


QMLSignal& QMLSignal::I(){
    static QMLSignal instance;
    return instance;
}


void QMLSignal::emitExperimentStatus(QString type, int status){
    emit experimentStatus(type,status);
}

void QMLSignal::emitRefExperimentLog(){
    emit refExperimentLog();
}

void QMLSignal::emitCommunicationStatus(int status){
    emit communicationStatus(status);
}

void QMLSignal::emitVoiceAssistant(int status){
    emit voiceAssistant(status);
}

void QMLSignal::emitRefCommunicationLog(){
    emit refCommunicationLog();
}

void QMLSignal::emitSendErrorMsg(QString errorInfo,QString methodInfo){
    emit sendErrorMsg(errorInfo,methodInfo);
}

void QMLSignal::emitSendResetMsg(QString status,QString serial){
    emit sendResetMsg(status,serial);
}

void QMLSignal::emitSendSyringRunMsg(QString status, QString serial)
{
    emit sendSyringRunMsg(status,serial);
}

void QMLSignal::emitSyringDataLack()
{
    emit syringDataLack();
}

void QMLSignal::emitSendAirPumpPressure(QString openVal,QString closeVal){
    emit sendAirPumpPressure(openVal,closeVal);
}

void QMLSignal::emitSendTurnTablePos(QString turnTableVal)
{
    emit sendTurnTablePos(turnTableVal);
}

void QMLSignal::emitMaintenanceInfoChanged(QString type, QString value){
    emit maintenanceInfoChanged(type, value);
}
